package com.File_io_.io_.writer_;

import java.io.*;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
public class BufferedCopy_ {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new FileReader("D:\\idea_WorkSpace\\myjava\\myjava\\src\\com\\File_io_\\hello.txt"));
        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("D:\\idea_WorkSpace\\myjava\\myjava\\src\\com\\File_io_\\date\\hello.txt"));
        String line;
        while ((line = bufferedReader.readLine()) != null){
            bufferedWriter.write(line);
            bufferedWriter.newLine();
        }
        bufferedReader.close();
        bufferedWriter.close();
    }
}
